package com.competition.entity;


import com.baomidou.mybatisplus.annotation.TableField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;
import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "equipment_leasing-order")
public class EquipmentLeasingOrder implements Serializable {
    @Id
    @Column(name = "equipment_order_id")
    private String equipmentOrderId;


    @Column(name = "equipment_id")
    private String equipmentId;

    @Column(name = "equipment_order_count")
    private int equipmentOrderCount;

    @Column(name = "equipment_order_status")
    private String equipmentOrderStatus;

    @Column(name = "user_id")
    private String userId;

    @TableField(exist = false)
    private EquipmentLeasing equipmentLeasing;

    @TableField(exist = false)
    private User user;
}
